<?php $cnt = 0; ?>   
		<?php if (!isset($show_pager) or $show_pager!=false): ?>
		    <?php include_partial('global/common/'.sfConfig::get('app_name').'/pager', array('pager'=>$pager)) ?>
		<?php  endif; ?>                   
            <?php if(isset($tmpl_sort) and $pager->getResults()):?>     
            <?php if(file_exists(sfConfig::get('sf_app_dir').'/modules/'.$sf_request->getParameter('module').'/templates/_tmpls/'.$tmpl_sort.'.php')):?>        
		       <?php include_partial($sf_request->getParameter('module').'/tmpls/'.$tmpl_sort,array('order'=>@$order,'sort'=>@$sort)) ?>
		    <?php else: ?>	    
				<?php include_partial('zdLister/tmpls/'.$tmpl_sort,array('order'=>$order,'sort'=>$sort)) ?>
		    <?php endif ?>
		    <?php endif ?>
			<?php if (isset($show_abc)): ?>
			<?php include_component('zdLister','showabc') ?>
			<?php endif ?>
   <div class="content">
	<?php if ($pager->getResults()): ?>
		<?php if (isset($tmpl_header)): ?>
			<?php include_partial('zdLister/tmpls/'.$tmpl_header) ?>	
		<?php endif; ?>
		<?php if(!isset($style_block)):?>
		<table width="100%" <?php if (isset($table_class)) echo 'class="'.$table_class.'"'; ?>>
		<?php endif ?>
		   <?php if (isset($table_header)): ?>
		    <?php include_partial($sf_request->getParameter('module').'/tmpls/'.$table_header, array('v'=>$v)) ?>
		   <?php endif ?>
		   <?php if(isset($colls)):?><tr><?php endif ?>
		    <?php if(file_exists(sfConfig::get('sf_app_dir').'/modules/'.$sf_request->getParameter('module').'/templates/_tmpls/'.$tmpl_name.'.php')):?>   
		    <?php foreach ($pager->getResults() as $v): ?>
		   		<?php if(isset($colls) and $cnt==$colls):?>
				 </tr><tr>
				 <?php $cnt=0; ?>
				 <?php endif ?>
		       <?php include_partial($sf_request->getParameter('module').'/tmpls/'.$tmpl_name, array('v'=>$v)) ?>
               <?php $cnt++; ?>
		     <?php endforeach; ?>  
		    <?php else: ?>
		    <?php foreach ($pager->getResults() as $v): ?>
		   		<?php if(isset($colls) and $cnt==$colls):?>
				 </tr><tr>
				 <?php $cnt=0; ?>
				 <?php endif ?>
				 <?php include_partial('zdLister/tmpls/'.$tmpl_name, array('v'=>$v)) ?>
				<?php $cnt++; ?>
		    <?php endforeach; ?>
		    <?php endif ?>
           <?php if(isset($colls)):?></tr><?php endif ?>
        <?php if(!isset($style_block)):?>
		</table>
		<?php endif ?>
		  <?php if(isset($style_block)):?>
		<div class="clear"></div>
		<?php endif ?>
		<?php if (!isset($show_pager) or $show_pager!=false): ?>
		    <?php include_partial('global/common/'.sfConfig::get('app_name').'/pager', array('pager'=>$pager)) ?>
		<?php endif; ?>
		<?php if (isset($tmpl_footer)): ?>
			<?php include_partial('zdLister/tmpls/'.$tmpl_footer) ?>	
		<?php endif; ?>
	<?php else: ?>
	<center> <font color="red" class="size11"><?php echo __('Результатов не найдено') ?></font> </center>
	<?php endif; ?>
</div>